Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SET /GET pointcuts doesn’t accept array. #12

Open
GoogleCodeExporter opened this issue Nov 24, 2015 · 1 comment
Open

SET /GET pointcuts doesn’t accept array. #12

GoogleCodeExporter opened this issue Nov 24, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. In .acc file, write lines like "Before: set(int a[10]){ 
printf("print");}"
2. In .mc file, try to access the int array "a"
3. Compile the code with gcc and acc

What is the expected output? What do you see instead?
The expect output for an array declared as "int[10]" should have no error 
during compilation process. However, it will pass acc compiler, but not 
GCC, GCC will give an 
parsing error.



What version of the product are you using? On what operating system?
ACC  0.8x  Ubuntu 9.10

Please provide any additional information below.
Possible solution:
Check Program counter each time program access “a”


Reported by Ivan Muzzolini


Original issue reported on code.google.com by lzmliz...@gmail.com on 14 May 2010 at 3:34

@GoogleCodeExporter
Copy link
Author

Test Case:
see the attached files main.mc and acc-code.acc.

compile the code by the following command.
>acc main.mc acc-code.acc


The expected output:


in main.
this is a point-cut for set.
this is a point-cut for get.
a is '2'.

However, the actual output:
It results a compile time error as follows,
>"acc-code.acc", line 1: error--1: syntax error near token '[' .

Important: The set/get pointcuts for current ACC compiler only accept global
variables. The new features will be added in the development process. 

Original comment by kedeng1...@gmail.com on 14 May 2010 at 3:39

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant